package com.salesmanager.core.utils;

import org.apache.commons.lang.RandomStringUtils;

public class SRandomUtils {
	public final static String CHAR_LIST_WITHNUM = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
	
	public final static int DEFAULT_PASSWORD_LENGTH = 6;
	
	public static String randomString(int length){
		return RandomStringUtils.random(DEFAULT_PASSWORD_LENGTH, CHAR_LIST_WITHNUM);  
	}
	
	public static String randomPassword(){
		return randomString(DEFAULT_PASSWORD_LENGTH);
	}
}	
